package com.zuoshenge.main.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zuoshenge.main.dao.StudentDao;
import com.zuoshenge.main.entity.Student;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class StudentDataService {

    @Resource
    private StudentDao studentDao;

    public Student queryStudentBySid(String sid) {
        return studentDao.queryBySid(sid);
    }

    public void addStudent(Student student) {
        studentDao.insert(student);
    }
}
